package servidor;

import java.awt.BorderLayout;

import javax.swing.*;

public class TelaServer extends JFrame{
	
	JPanel panel;
	JLabel label;
	JTextArea texto;

	public TelaServer(){
		panel = new JPanel();
		label = new JLabel("Testando");
		texto = new JTextArea(20,50);
		
		panel.add(texto);
		panel.add(label);
		
		
		setLocation(800,500);
		setVisible(true);
		setResizable(false);
		getContentPane().add(panel, BorderLayout.CENTER);
		setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		pack();
	}
	
	void recebeMsg(String string){
		texto.append(string + "\n");
		
	}
}
